xen: Move GCC_HAS_VISIBILITY_ATTRIBUTE to Kconfig and common
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 11 Dec 2019 16:38:57 +0000 (16:38 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 30 Jan 2020 11:54:33 +0000 (11:54 +0000)
commitb3af8108d5b8f2897984fc1264ec5406d0888a7e
treea2dc8d26002f92e3ecde80b70171807b1a5cf586
parent67c5d662d768311fae9c7035b305078b81b23909
xen: Move GCC_HAS_VISIBILITY_ATTRIBUTE to Kconfig and common

The check for $(CC) -fvisibility=hidden is done by both arm and x86,
so the patch also move the check to the common area.

The check doesn't check if $(CC) is gcc, and clang can accept that
option as well, so s/GCC/CC/ is done to the define name.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/Kconfig
xen/arch/arm/Rules.mk
xen/arch/x86/Rules.mk
xen/include/xen/compiler.h